#include "StdAfx.h"
#include "Atest.h"
#include "Aidentity.h"

//Atest g_atest;
Atest * gatest = NULL;//&g_atest;

// 
class AtestStuff : public Astuff
{
public:
	AtestStuff(Aobj * obj) : Astuff(obj)
	{
	}
	~AtestStuff()
	{
	}
//	int create() { return 0; }
//	void destory() {	}
	int init() 
	{
		return 0;
	}
	void exit() 
	{
	}
};
			 
//
Atest::Atest(void)
{
	gatest = this;
	mstuff = new AtestStuff(this);
	mastuff = mstuff;
	this->setObjName(_T("Atest"));
	gidentity->add(this->getObjName(),this);
//	this->acreate();
}
Atest::~Atest(void)
{
//	this->adestory();
	gidentity->del(this->getObjName());
	if( mastuff) { delete mstuff; mstuff = NULL; mastuff = NULL; }
	gatest = NULL;
}
